\(\int \frac {1}{\sqrt {-1-\cot ^2(x)}} \, dx\) [13]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [C] (verification not implemented)
   Sympy [F]
   Maxima [A] (verification not implemented)
   Giac [C] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 12, antiderivative size = 14 \[ \int \frac {1}{\sqrt {-1-\cot ^2(x)}} \, dx=-\frac {\cot (x)}{\sqrt {-\csc ^2(x)}} \]

[Out]

-cot(x)/(-csc(x)^2)^(1/2)

Rubi [A] (verified)

Time = 0.03 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3738, 4207, 197} \[ \int \frac {1}{\sqrt {-1-\cot ^2(x)}} \, dx=-\frac {\cot (x)}{\sqrt {-\csc ^2(x)}} \]

[In]

Int[1/Sqrt[-1 - Cot[x]^2],x]

[Out]

-(Cot[x]/Sqrt[-Csc[x]^2])

Rule 197

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[x*((a + b*x^n)^(p + 1)/a), x] /; FreeQ[{a, b, n, p}, x] &
& EqQ[1/n + p + 1, 0]

Rule 3738

Int[(u_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Int[ActivateTrig[u*(a*sec[e + f*x]^2)^p]
, x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a, b]

Rule 4207

Int[((b_.)*sec[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Dist[b*(ff/
f), Subst[Int[(b + b*ff^2*x^2)^(p - 1), x], x, Tan[e + f*x]/ff], x]] /; FreeQ[{b, e, f, p}, x] &&  !IntegerQ[p
]

Rubi steps \begin{align*} \text {integral}& = \int \frac {1}{\sqrt {-\csc ^2(x)}} \, dx \\ & = \text {Subst}\left (\int \frac {1}{\left (-1-x^2\right )^{3/2}} \, dx,x,\cot (x)\right ) \\ & = -\frac {\cot (x)}{\sqrt {-\csc ^2(x)}} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.03 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {-1-\cot ^2(x)}} \, dx=-\frac {\cot (x)}{\sqrt {-\csc ^2(x)}} \]

[In]

Integrate[1/Sqrt[-1 - Cot[x]^2],x]

[Out]

-(Cot[x]/Sqrt[-Csc[x]^2])

Maple [A] (verified)

Time = 0.03 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.07

method result size
derivativedivides \(-\frac {\cot \left (x \right )}{\sqrt {-1-\cot \left (x \right )^{2}}}\) \(15\)
default \(-\frac {\cot \left (x \right )}{\sqrt {-1-\cot \left (x \right )^{2}}}\) \(15\)
risch \(-\frac {i {\mathrm e}^{2 i x}}{2 \sqrt {\frac {{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right )}-\frac {i}{2 \left ({\mathrm e}^{2 i x}-1\right ) \sqrt {\frac {{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}}\) \(65\)

[In]

int(1/(-1-cot(x)^2)^(1/2),x,method=_RETURNVERBOSE)

[Out]

-cot(x)/(-1-cot(x)^2)^(1/2)

Fricas [C] (verification not implemented)

Result contains complex when optimal does not.

Time = 0.25 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {-1-\cot ^2(x)}} \, dx=\frac {1}{2} \, {\left (-i \, e^{\left (2 i \, x\right )} - i\right )} e^{\left (-i \, x\right )} \]

[In]

integrate(1/(-1-cot(x)^2)^(1/2),x, algorithm="fricas")

[Out]

1/2*(-I*e^(2*I*x) - I)*e^(-I*x)

Sympy [F]

\[ \int \frac {1}{\sqrt {-1-\cot ^2(x)}} \, dx=\int \frac {1}{\sqrt {- \cot ^{2}{\left (x \right )} - 1}}\, dx \]

[In]

integrate(1/(-1-cot(x)**2)**(1/2),x)

[Out]

Integral(1/sqrt(-cot(x)**2 - 1), x)

Maxima [A] (verification not implemented)

none

Time = 0.31 (sec) , antiderivative size = 12, normalized size of antiderivative = 0.86 \[ \int \frac {1}{\sqrt {-1-\cot ^2(x)}} \, dx=-\frac {1}{\sqrt {-\tan \left (x\right )^{2} - 1}} \]

[In]

integrate(1/(-1-cot(x)^2)^(1/2),x, algorithm="maxima")

[Out]

-1/sqrt(-tan(x)^2 - 1)

Giac [C] (verification not implemented)

Result contains complex when optimal does not.

Time = 0.27 (sec) , antiderivative size = 28, normalized size of antiderivative = 2.00 \[ \int \frac {1}{\sqrt {-1-\cot ^2(x)}} \, dx=-\frac {2 i}{{\left (\frac {\cos \left (x\right ) - 1}{\cos \left (x\right ) + 1} - 1\right )} \mathrm {sgn}\left (\sin \left (x\right )\right )} - 2 i \, \mathrm {sgn}\left (\sin \left (x\right )\right ) \]

[In]

integrate(1/(-1-cot(x)^2)^(1/2),x, algorithm="giac")

[Out]

-2*I/(((cos(x) - 1)/(cos(x) + 1) - 1)*sgn(sin(x))) - 2*I*sgn(sin(x))

Mupad [B] (verification not implemented)

Time = 13.20 (sec) , antiderivative size = 13, normalized size of antiderivative = 0.93 \[ \int \frac {1}{\sqrt {-1-\cot ^2(x)}} \, dx=\frac {\sin \left (2\,x\right )\,1{}\mathrm {i}}{2\,\sqrt {{\sin \left (x\right )}^2}} \]

[In]

int(1/(- cot(x)^2 - 1)^(1/2),x)

[Out]

(sin(2*x)*1i)/(2*(sin(x)^2)^(1/2))